import request from '@/utils/request'

const path = '/warehousing/equipmentWarehousing'
// 查询设备类型列表
export function list(params) {
  return request({
    url: path+'/list',
    method: 'get',
    params,
  })
}
// 查询设备类型列表
export function addApply(data) {
  return request({
    url: path+'/addApply',
    method: 'post',
    data,
  })
}
// 获取仪器仓储(出入库)详细信息
export function info(id) {
  return request({
    url: path+'/'+id,
    method: 'get',
  })
}
// 获取仪器仓储(出入库)详细信息
export function giveBack(data) {
  return request({
    url: path+'/giveBack',
    method: 'post',
    data,
  })
}

// 删除仪器仓储(出入库)
export function remove(id) {
  return request({
    url: path+'/remove/'+id,
    method: 'get',
  })
}

//修改状态
export function updateState(data) {
  return request({
    url: path+'/updateStatus',
    method: 'post',
    data,
  })
}

//打印出入库记录
export function generateWarehousingRecords(data) {
  return request({
    url: path+'/generateWarehousingRecords',
    method: 'post',
    data,
  })
}
